<template>
  <Card :idobject="idobject" :itemid="itemid" :idtemplate="idtemplate">
    <template v-slot="slotProps">
      <DefaultCardHead :hastag="slotProps.data.hastag" :headinfo="slotProps.data.headinfo" :handleAddTag="slotProps.data.handleAddTag" :tags="slotProps.data.tags"></DefaultCardHead>
    </template>
  </Card>

</template>

<script setup lang="ts">
import Card from "@/components/common/Card.vue";
import DefaultCardHead from "@/components/base/Card/DefaultCardHead.vue";
import {onActivated,ref,onMounted} from "vue"
import { useRoute, useRouter } from "vue-router";

const router = useRouter();
const route = useRoute();

const idobject = ref(route.query.idobject || "");
const itemid = ref(route.query.itemid || "");
const idtemplate = ref(route.query.idtemplate || "");

onActivated(() => {
  // console.log("onActivated")
  
  document.title = sessionStorage.getItem("stitle") || "渠道管理"
})
onMounted(()=>{
  // console.log("onMounted")
  
  document.title = sessionStorage.getItem("stitle") || "渠道管理"
})




</script>

<style scoped>
</style>